package com.hopes.bizz.close.position.vo;

import com.hopes.bizz.close.common.constant.CloseModuleEnums;
import lombok.Data;

import java.io.Serializable;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 定位数据
 * @time 2023/11/14 20:52
 */
@Data
public class SocketSendVO<T> implements Serializable {

    private static final long serialVersionUID = -5673678233810443574L;

    /**
     * 定位数据
     */
    private T socketData;

    /**
     * 操作枚举
     */
    private CloseModuleEnums.PositionOperationEnum operationEnum;

    public SocketSendVO() {

    }

    public SocketSendVO(T socketData, CloseModuleEnums.PositionOperationEnum operationEnum) {
        this.socketData = socketData;
        this.operationEnum = operationEnum;
    }

    public SocketSendVO(T socketData) {
        this.socketData = socketData;
        this.operationEnum = CloseModuleEnums.PositionOperationEnum.INSERT;
    }

}
